namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("ICO_PROFILES")]
    public class ICO_PROFILES : ObjectRow {
        
        public ICO_PROFILES() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public ICO_PROFILES(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected ICO_PROFILES(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("ID")]
        public int ID {
            get {
                return (System.Int32)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }
        
        [Field("CODE")]
        public string CODE {
            get {
                return (System.String)GetValue("CODE");
            }
            set {
                SetValue("CODE", value);
            }
        }

        [Field("DESCRIPTION")]
        public string DESCRIPTION
        {
            get {
                return (System.String)GetValue("DESCRIPTION");
            }
            set {
                SetValue("DESCRIPTION", value);
            }
        }

        [Field("SHORT_DESCRIPTION")]
        public string SHORT_DESCRIPTION
        {
            get {
                return (System.String)GetValue("SHORT_DESCRIPTION");
            }
            set {
                SetValue("SHORT_DESCRIPTION", value);
            }
        }

        [Field("TYPE")]
        public decimal TYPE
        {
            get {
                return (System.Decimal)GetValue("TYPE");
            }
            set {
                SetValue("TYPE", value);
            }
        }

        [Field("BASE_UOM_CODE")]
        public string BASE_UOM_CODE
        {
            get {
                return (System.String)GetValue("BASE_UOM_CODE");
            }
            set {
                SetValue("BASE_UOM_CODE", value);
            }
        }

        [Field("DOMAIN_ID")]
        public decimal DOMAIN_ID
        {
            get {
                return (System.Decimal)GetValue("DOMAIN_ID");
            }
            set {
                SetValue("DOMAIN_ID", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public long LAST_UPDATE_TIME
        {
            get
            {
                return (long)GetValue("LAST_UPDATE_TIME", DateTime.Now);
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public long CREATETIME
        {
            get
            {
                return (long)GetValue("CREATETIME", DateTime.Now);
            }
            set
            {
                SetValue("CREATETIME", value);
            }
        }

        [Field("ACTIVE")]
        public Boolean ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE", false);
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }
        [Field("PROJECT_DEPT_ID")]
        public int PROJECT_DEPT_ID
        {
            get {
                return (System.Int32)GetValue("PROJECT_DEPT_ID");
            }
            set {
                SetValue("PROJECT_DEPT_ID", value);
            }
        }
    }
}
